(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
f(a, y) → f(y, g(y))
g(a) → b
g(b) → b
Rewrite Strategy: INNERMOST
(1) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID) transformation)
Converted CpxTRS to CDT
(2) Obligation:
Complexity Dependency Tuples Problem
Rules:
f(a, z0) → f(z0, g(z0))
g(a) → b
g(b) → b
Tuples:
F(a, z0) → c(F(z0, g(z0)), G(z0))
S tuples:
F(a, z0) → c(F(z0, g(z0)), G(z0))
K tuples:none
Defined Rule Symbols:
f, g
Defined Pair Symbols:
F
Compound Symbols:
c
(3) CdtPolyRedPairProof (UPPER BOUND (ADD(O(n^2))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
F(a, z0) → c(F(z0, g(z0)), G(z0))
We considered the (Usable) Rules:
g(a) → b
g(b) → b
And the Tuples:
F(a, z0) → c(F(z0, g(z0)), G(z0))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(F(x1, x2)) = x2 + [3]x22 + [2]x12
POL(G(x1)) = x1
POL(a) = [1]
POL(b) = 0
POL(c(x1, x2)) = x1 + x2
POL(g(x1)) = 0
(4) Obligation:
Complexity Dependency Tuples Problem
Rules:
f(a, z0) → f(z0, g(z0))
g(a) → b
g(b) → b
Tuples:
F(a, z0) → c(F(z0, g(z0)), G(z0))
S tuples:none
K tuples:
F(a, z0) → c(F(z0, g(z0)), G(z0))
Defined Rule Symbols:
f, g
Defined Pair Symbols:
F
Compound Symbols:
c
(5) SIsEmptyProof (EQUIVALENT transformation)
The set S is empty
(6) BOUNDS(O(1), O(1))